import http from "../../utils/http";
const get = (data: any) => {
  return http({
    url: "/getBalance",
    method: "post",
    data: {
      search: data + "",
    },
  });
};

// 高级搜索
const getSenior = (data: any) => {
  return http({
    url: "/getSenior",
    method: "post",
    data,
  });
};

const add = (data: any) => {
  return http({
    url: "/addBalance",
    method: "post",
    data,
  });
};
const del = (data: any) => {
  return http({
    url: "/delBalance",
    method: "delete",
    data: {
      id: data.key,
    },
  });
};
const edit = (data: any) => {
  return http({
    url: "/editBalance",
    method: "post",
    data,
  });
};

export { get, getSenior, add, edit, del };
